package eerbaar.internal.level;

import eerbaar.context.IContext;
import eerbaar.expression.ExpressionFactory;
import eerbaar.expression.IExpression;
import eerbaar.level.IComplete;

public class Complete implements IComplete {

    private final IExpression and = ExpressionFactory.createExpression("and",
            null);

    private int next;

    @Override
    public void addExpression(IExpression expression) {

        this.and.addExpression(expression);
    }

    @Override
    public boolean execute(IContext model) {

        return this.and.execute(model);
    }

    @Override
    public IExpression[] getExpressions() {

        return this.and.getExpressions();
    }

    @Override
    public int getNext() {

        return this.next;
    }

    @Override
    public void setNext(int next) {

        this.next = next;
    }

}
